<style lang="scss" scoped>
    @import '@/assets/css/index';
    .verification{
        @include page()
    }
</style>
<template>
  <div class="verification"></div>
</template>

<script>
export default {
    name: 'Verification',
    data () {
        return {
            // activity_id:'',
            openid:'',
            order_id:''
        }
    },
    mounted () {
        const _this = this
        // _this.activity_id = _this.$route.params.activity_id;
        _this.openid = _this.$route.query.openid;
        _this.order_id = _this.$route.query.order_id;
        _this.verificationItem()
    },
    methods: {
        // 核销接口
        verificationItem() {
            let params = {
                openid: this.openid,
                order_id: this.order_id
            }
            this.$request.verificationItem(params).then(res=>{
                if(res.ret == 400) {
                    alert("您已核销")
                    window.close();
                }else if(res.ret == 200) {
                    alert("核销成功")
                    window.close();
                }
            })
        }
    }
}
</script>